/*
 * Copyright (c) 2010 - 2011, Brookhaven National Laboratory
 * All rights reserved.
 * The software in this package is published under the terms
 * of the BSD license a copy of which has been included with
 * this distribution in the license.txt file.
 */


package com.google.protobuf;

/**
 *
 */
public class PublicWireFormat {
    
  public static final int WIRETYPE_VARINT           = WireFormat.WIRETYPE_VARINT;
  public static final int WIRETYPE_FIXED64          = WireFormat.WIRETYPE_FIXED64;
  public static final int WIRETYPE_LENGTH_DELIMITED = WireFormat.WIRETYPE_LENGTH_DELIMITED;
  public static final int WIRETYPE_START_GROUP      = WireFormat.WIRETYPE_START_GROUP;
  public static final int WIRETYPE_END_GROUP        = WireFormat.WIRETYPE_END_GROUP;
  public static final int WIRETYPE_FIXED32          = WireFormat.WIRETYPE_FIXED32;

  /** Given a tag value, determines the wire type (the lower 3 bits). */
  public static int getTagWireType(final int tag) {
      return WireFormat.getTagWireType(tag);
  }

  /** Makes a tag value given a field number and wire type. */
  public static int makeTag(final int fieldNumber, final int wireType) {
    return WireFormat.makeTag(fieldNumber, wireType);
  }

}
